import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      component: () => import('@/views/index.vue'),   //这个路径是
      redirect: 'home',
      children: [
        {
          path: 'home',
          component: () => import("@/components/home")
        },
        {
          path: 'about',
          component: () => import("@/components/about")
        },
        {
          path: 'agent',
          component: () => import("@/components/agent")
        },
        {
          path: 'house',
          component: () => import("@/components/house")
        },
        {
          path: 'pronperty',
          component: () => import("@/components/pronperty")
        }
      ]
    },

  ]
})


export default router